package saleMarket.domain;

import lombok.*;

@NoArgsConstructor
@AllArgsConstructor
@Getter
@Setter
@ToString
/**
 * @author 陈星
 * @version 1.0  12-12-2020
 */
//订单
public class Order implements Comparable<Order> {
    //id,orderStatus,shopOwner_id,customer_id,freightCargo_id
    private Integer id;

    //付款状态
    private String orderStatus;
    //店铺主
    private ShopOwner shopOwner;
    //顾客
    private Customer customer;
    //运输货物
    private FreightCargo freightCargo;

    public Order(String orderStatus,ShopOwner shopOwner,Customer customer,FreightCargo freightCargo){
        this.orderStatus = orderStatus;
        this.shopOwner = shopOwner;
        this.customer = customer;
        this.freightCargo = freightCargo;
    }

    @Override
    public int compareTo(Order o) {
        return 0;
    }
}
